//
//  Food.cpp
//  Snake
//
//  Created by CmST0us on 16/11/26.
//  Copyright © 2016年 SpringEngine. All rights reserved.
//

#include "Food.hpp"
#include <stdlib.h>
#include <unistd.h>

Food::Food(Point p){
//    this->point.x = random() & (col - 2) + 1;
//    this->point.y = random() & (line - col - 2) + line + 1;
    this->point = p;
    this->shape = Food::foodShape;
}
Food::~Food(){
    this->point.x = -100;
    this->point.y = -100;
}